package com.hk.yajin.utills;

import com.hk.yajin.model.Message;

import java.util.List;

/**
 * Created by 伦哥哥 on 2017/8/10.
 */

public class SQLMessageEven {

    public final static int InitData=1;
    public final static int LoadMore=2;
    public final static int QueryDataCount=3;

    private boolean hasMoreMessage;
    private int evenType;
    private List<Message> sqlDatas;

    public boolean isHasMoreMessage() {
        return hasMoreMessage;
    }

    public void setHasMoreMessage(boolean hasMoreMessage) {
        this.hasMoreMessage = hasMoreMessage;
    }

    public int getEvenType() {
        return evenType;
    }

    public void setEvenType(int evenType) {
        this.evenType = evenType;
    }

    public List<Message> getSqlDatas() {
        return sqlDatas;
    }

    public void setSqlDatas(List<Message> sqlDatas) {
        this.sqlDatas = sqlDatas;
    }

    public SQLMessageEven(int type, List<Message> data) {
        evenType = type;
        sqlDatas = data;
    }

    public SQLMessageEven(int type,boolean hasmore) {
        evenType = type;
        hasMoreMessage=hasmore;
    }
}
